<?php
namespace entity;
use my\bq\entity\EntityTemplate;
class User extends EntityTemplate{
private $user_id;
private $user_name;
private $email;
private $password;
private $real_name;
private $gender;
private $birthday;
private $phone_tel;
private $phone_mob;
private $im_qq;
private $im_msn;
private $im_skype;
private $im_yahoo;
private $im_aliww;
private $reg_time;
private $last_login;
private $last_ip;
private $logins;
private $ugrade;
private $portrait;
private $outer_id;
private $activation;
private $feed_config;
private $user_safekey;
 
	public function config(){
		$config = array();
		$config['name'] = 'ecm_member';
		$config['alias'] = 'member';
		$config['id'] = 'user_id';
		$config['columns'] = array('user_id','user_name','email','password','real_name','gender','birthday','phone_tel','phone_mob','im_qq','im_msn','im_skype','im_yahoo','im_aliww','reg_time','last_login','last_ip','logins','ugrade','portrait','outer_id','activation','feed_config','user_safekey');
		$this->config = $config;
	}
	
	
	public function __get($var){
		if(isset($this->$var)) {
			return $this->$var;
		}else{
			return parent::output($var); 
		}
	}
	public function __set($var,$value){$this->$var = $value;}
}